module.exports = {
    assetsDir: 'public',
    publicPath: process.env.NODE_ENV === 'production' ?
        'https://cdn.hterobot.com/vue/' : '/',
    pages: {
        wechatregister: {
            entry: 'src/wechatregister/main.js',
            template: 'public/wechatregister.html',
            filename: 'wechatregister.html',
        },
        forum: {
            entry: 'src/forum/main.js',
            template: 'public/forum.html',
            filename: 'forum.html',
        },
        wxbind: {
            entry: 'src/wxbind/main.js',
            template: 'public/wxbind.html',
            filename: 'wxbind.html',
        }
    },
    devServer: {
        proxy: {
            '/': {
                // 目标 API 地址
                // target: 'https://47.105.92.46',
                // target: 'https://47.105.145.225:8080/',
                // target: 'http://127.0.0.1:6379',
                // target: 'https://www.hterobot.com/',
                target: 'http://localhost:7001/',
                // target: 'https://node.hterobot.com/',
                // target: "https://192.168.1.3:7001/", //node接口测试代理
                // 如果要代理 websockets
                ws: false,
                // 将主机标头的原点更改为目标URL
                changeOrigin: true
            }
        }
    },
}